<div class="row block-main-title" style="position: relative;">
    <div class="col-md-12 title img-responsive">Tin tức</div>
    <div class="block-main-title-right"><label><span></span></label></div>
</div>
<?php foreach ($news as $new): ?>
    <div class="row thumb-work-item"> 
            <div class="col-md-12">
                <div class="thumb-title">
                    <a href="<?php echo base_url("pages/detail_news/" . $this->my_utilities->seo_string_to_url($new['name'] . '-' . $new['id']) . WEB_EXTENSION); ?>">
                        <?php echo $new['name'] ?>
                    </a>
                </div>
                <div>
                    <?php echo substr($new['description'],0, 200); ?>
                </div>
                <div class="text-right">
                    <a class="read-more" href="<?php echo base_url("pages/detail_news/" . $this->my_utilities->seo_string_to_url($new['name'] . '-' . $new['id']) . WEB_EXTENSION); ?>" role="button">Chi tiết »</a>
                </div>
            </div>
        </div>
<?php endforeach; ?>



<div class="row">
    <div class="col-md-6">
    </div>
    <div class="col-md-6">
        <?php
            $config['base_url'] = base_url('pages/news/page');
            $config['total_rows'] = $total;
            $config['per_page'] = PER_PAGE;
            $config['uri_segment'] = 4;
            $this->pagination->initialize($config);
            echo $this->pagination->create_links();
        ?>
    </div>
</div>